package com.ruoyi.system.service.car4s_service.car4s_impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.car4s_mapper.Car4sTechnicianInfoMapper;
import com.ruoyi.system.domain.car4s_domain.Car4sTechnicianInfo;
import com.ruoyi.system.service.car4s_service.ICar4sTechnicianInfoService;

/**
 * 技师信息Service业务层处理
 * 
 * @author LK
 * @date 2024-06-29
 */
@Service
public class Car4sTechnicianInfoServiceImpl implements ICar4sTechnicianInfoService 
{
    @Autowired
    private Car4sTechnicianInfoMapper car4sTechnicianInfoMapper;

    /**
     * 查询技师信息
     * 
     * @param technicianId 技师信息主键
     * @return 技师信息
     */
    @Override
    public Car4sTechnicianInfo selectCar4sTechnicianInfoByTechnicianId(Long technicianId)
    {
        return car4sTechnicianInfoMapper.selectCar4sTechnicianInfoByTechnicianId(technicianId);
    }

    /**
     * 查询技师信息列表
     * 
     * @param car4sTechnicianInfo 技师信息
     * @return 技师信息
     */
    @Override
    public List<Car4sTechnicianInfo> selectCar4sTechnicianInfoList(Car4sTechnicianInfo car4sTechnicianInfo)
    {
        return car4sTechnicianInfoMapper.selectCar4sTechnicianInfoList(car4sTechnicianInfo);
    }

    /**
     * 新增技师信息
     * 
     * @param car4sTechnicianInfo 技师信息
     * @return 结果
     */
    @Override
    public int insertCar4sTechnicianInfo(Car4sTechnicianInfo car4sTechnicianInfo)
    {
        return car4sTechnicianInfoMapper.insertCar4sTechnicianInfo(car4sTechnicianInfo);
    }

    /**
     * 修改技师信息
     * 
     * @param car4sTechnicianInfo 技师信息
     * @return 结果
     */
    @Override
    public int updateCar4sTechnicianInfo(Car4sTechnicianInfo car4sTechnicianInfo)
    {
        return car4sTechnicianInfoMapper.updateCar4sTechnicianInfo(car4sTechnicianInfo);
    }

    /**
     * 批量删除技师信息
     * 
     * @param technicianIds 需要删除的技师信息主键
     * @return 结果
     */
    @Override
    public int deleteCar4sTechnicianInfoByTechnicianIds(Long[] technicianIds)
    {
        return car4sTechnicianInfoMapper.deleteCar4sTechnicianInfoByTechnicianIds(technicianIds);
    }

    /**
     * 删除技师信息信息
     * 
     * @param technicianId 技师信息主键
     * @return 结果
     */
    @Override
    public int deleteCar4sTechnicianInfoByTechnicianId(Long technicianId)
    {
        return car4sTechnicianInfoMapper.deleteCar4sTechnicianInfoByTechnicianId(technicianId);
    }
}
